* {
    margin: 0;
    padding: 0;
}

:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;

    color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #242424;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /*文章封面图片宽高*/
    --post-image-size: 180px;
}

a {
    font-weight: 500;
    color: #646cff;
    text-decoration: inherit;
}

a:hover {
    color: #535bf2;
}

body {
    margin: 0;
    display: flex;
    place-items: center;
    min-width: 320px;
    min-height: 100vh;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.25s;
}

button:hover {
    border-color: #646cff;
}

.card {
    padding: 2em;
}

#app {
    box-sizing: border-box;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
}

@media (prefers-color-scheme: light) {
    :root {
        color: #213547;
        background-color: #ffffff;
    }

    a:hover {
        color: #747bff;
    }

    button {
        background-color: #f9f9f9;
    }
}

.v-query {
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 10px;

    > h4 {
        margin-bottom: 10px;
    }

    > h4:before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 20px;
        background-color: #646cff;
        margin-right: 5px;
        vertical-align: middle;
    }
}

.v-container {
    margin: 0 auto;
    max-width: 1200px;
}

.v-toolbar {
    background-color: #ffffff;
    padding: 4px 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v-page {
    margin: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.v-post-left {
    width: 30%;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

.v-post-right {
    width: 100%;
    position: relative;
}

/* 元素进入和离开时候的效果 */
.slide-right-enter-active, .slide-right-leave-active {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 告诉浏览器这些属性将会变化，从而可以提前优化性能。 */
    will-change: opacity, transform;
}

/* 开始进入时候的效果 */
.slide-right-enter-from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
}

/* 进入结束时候的效果 */
.slide-right-enter-to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* 离开结束时候的效果 */
.slide-right-leave-to {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
}

/* src/styles/print.css 或写在组件 <style scoped> 里 */
@media print {
    body * { visibility: hidden; }          /* 隐藏整页 */
    #blog-article, #blog-article * { visibility: visible; }  /* 只保留文章区域 */
    #blog-article { position: absolute; left: 0; top: 0; width: 100%; }

    /* 防止内容被截断 */
    h1, h2, h3, p, table, img { page-break-inside: avoid; }
}